<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="com.git.mark.dao.*"%>
<%
	MarkDaoImpl mark = new MarkDaoImpl();
	
 	String query =request.getParameter("name_startsWith");  
 
 	//query= new String(query.getBytes("ISO-8859-1"), "UTF-8");  

	 	//System.out.println("================"+query);
	 	//query = query.substring(query.lastIndexOf(""));
		String json=mark.toJoson(query);
		response.setContentType("application/json;charset=UTF-8");
		response.setCharacterEncoding("UTF-8");
		response.setHeader("Pragma", "No-cache");     
		response.setHeader("Cache-Control", "no-cache");     
		response.setDateHeader("Expires", 0);  
		try {
			PrintWriter out2 = response.getWriter();
			out2.write(json);
		} catch (IOException e) {
			e.printStackTrace();
		}

%>